package cmo.neutech.day10.HomeWork.d4;

public class HourlyEmployee extends ColaEmployee{
    int hoursSal;
    int hoursMonth;
    public HourlyEmployee(String name,int month,int hoursSal,int hoursMonth)
    {
        super(name,month);
        this.hoursSal = hoursSal;
        this.hoursMonth = hoursMonth;
    }
    @Override
    public int getSalary(int month){
        return getSalMonth(month) + hoursMonth*hoursSal;
    }

}
